package edu.xhu.model.behavior.vo;

import edu.xhu.model.behavior.pojos.BiliUserComment;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Objects;

@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Accessors(chain = true)
@Data
public class CommentTree extends BiliUserComment {

    /**
     * 评论发布者用户的全部信息
     */
    private Map<String, Object> userAllInfo;

    /**
     * 被回复评论的用户的全部信息
     */
    private Map<String, Object> toUserAllInfo;

    /**
     * 评论的热度
     */
    private double score;

    /**
     * 初始化一个空的arrayList,
     * 如果是根评论，replies装子评论
     * 如果是子评论，replies为空
     */
    private List<CommentTree> replies = new ArrayList<>();
}
